<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>任务记录网站</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <header>
            <h1>任务记录</h1>
            <p>高效管理您的日常任务</p>
        </header>

        <div class="task-form">
            <h2>添加新任务</h2>
            <form id="addTaskForm">
                <input type="text" id="taskInput" placeholder="输入任务内容..." required>
                <div class="form-row">
                    <select id="prioritySelect">
                        <option value="low">低优先级</option>
                        <option value="medium" selected>中优先级</option>
                        <option value="high">高优先级</option>
                    </select>
                    <input type="date" id="dueDate">
                    <button type="submit">添加任务</button>
                </div>
            </form>
        </div>

        <div class="task-filters">
            <button class="filter-btn active" data-filter="all">全部任务</button>
            <button class="filter-btn" data-filter="pending">待完成</button>
            <button class="filter-btn" data-filter="completed">已完成</button>
        </div>

        <div class="task-stats">
            <span id="totalTasks">总任务: 0</span>
            <span id="completedTasks">已完成: 0</span>
            <span id="pendingTasks">待完成: 0</span>
        </div>

        <ul id="taskList" class="task-list">
            <!-- 任务将通过JavaScript动态添加 -->
        </ul>
    </div>

    <script src="script.js"></script>
</body>
</html>